last resort

A final expedient or recourse to achieve some end or settle a difficulty. For example, If you don't improve, we'll try this new medication as a last resort. This term originally referred to a court of law from which there was no appeal. [ Late 1600s ]